package service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import vo.Product;
import vo.Producttype;

public interface ProductService {
	public String addProduct(Product product, Producttype type, int price1, int price2, int price3);
	public String deleteProduct(Product product);
	public List selectProduct(String key);
	public String updateProduct(Product product, int price1, int price2, int price3);
	public Product getProductByNo(String productNo);
	public String addProductType(Producttype type);
	public List<Producttype> getProductType();
	public Producttype getTypeByName(Producttype type);
	public boolean checkName(String productName);
	public boolean checkType(String type);
	public List getAllProduct();
	public String deleteProductType(int id);
	public Map<String,Object> getSpec(Product productNo);
	public List searchProductType(String key);
	public List<Product> getProductByType(Producttype type);
	public String updateType(Producttype type);
}
